package edu.mis.modules.log;

import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Page;

import edu.mis.model.Log;

public class LogController extends Controller{
	public void index() {
		render("log.html");
	}
	
	/**
	 * 获得操作日志列表
	 */
	public void getLogList(){
		Integer page = getParaToInt("page");
		Integer rows = getParaToInt("rows");
		Page<Log> data = Log.dao.paginate(page, rows);
		setAttr("rows", data.getList());
		setAttr("total", data.getTotalRow());
		renderJson(); 
	}
}
